|
bldcfoc2 2.2.0
|
This file contains API for BLDC FOC 2 Click Driver. More...
#include "drv_digital_out.h"#include "drv_digital_in.h"#include "drv_i2c_master.h"#include "drv_pwm.h"Go to the source code of this file.
Data Structures | |
| struct | bldcfoc2_t |
| BLDC FOC 2 Click context object. More... | |
| struct | bldcfoc2_cfg_t |
| BLDC FOC 2 Click configuration object. More... | |
Enumerations | |
| enum | bldcfoc2_return_value_t { BLDCFOC2_OK = 0 , BLDCFOC2_ERROR = -1 } |
| BLDC FOC 2 Click return value data. More... | |
Functions | |
| void | bldcfoc2_cfg_setup (bldcfoc2_cfg_t *cfg) |
| BLDC FOC 2 configuration object setup function. | |
| err_t | bldcfoc2_init (bldcfoc2_t *ctx, bldcfoc2_cfg_t *cfg) |
| BLDC FOC 2 initialization function. | |
| err_t | bldcfoc2_default_cfg (bldcfoc2_t *ctx) |
| BLDC FOC 2 default configuration function. | |
| err_t | bldcfoc2_write_reg (bldcfoc2_t *ctx, uint8_t reg, uint32_t data_in) |
| BLDC FOC 2 write register function. | |
| err_t | bldcfoc2_read_reg (bldcfoc2_t *ctx, uint8_t reg, uint32_t *data_out) |
| BLDC FOC 2 read register function. | |
| err_t | bldcfoc2_read_regs (bldcfoc2_t *ctx, uint8_t reg, uint32_t *data_out, uint8_t len) |
| BLDC FOC 2 read multiple registers function. | |
| err_t | bldcfoc2_set_duty_cycle (bldcfoc2_t *ctx, float duty_cycle) |
| BLDC FOC 2 set duty cycle function. | |
| err_t | bldcfoc2_pwm_stop (bldcfoc2_t *ctx) |
| BLDC FOC 2 stop PWM function. | |
| err_t | bldcfoc2_pwm_start (bldcfoc2_t *ctx) |
| BLDC FOC 2 start PWM function. | |
| void | bldcfoc2_pull_brake (bldcfoc2_t *ctx) |
| BLDC FOC 2 pull brake function. | |
| void | bldcfoc2_release_brake (bldcfoc2_t *ctx) |
| BLDC FOC 2 release brake function. | |
| void | bldcfoc2_set_direction (bldcfoc2_t *ctx, uint8_t dir) |
| BLDC FOC 2 set direction function. | |
| void | bldcfoc2_switch_direction (bldcfoc2_t *ctx) |
| BLDC FOC 2 switch direction function. | |
| uint8_t | bldcfoc2_get_fgo_pin (bldcfoc2_t *ctx) |
| BLDC FOC 2 get FGO pin state function. | |
| uint8_t | bldcfoc2_get_fault_pin (bldcfoc2_t *ctx) |
| BLDC FOC 2 get FAULT pin state function. | |
| err_t | bldcfoc2_eeprom_access_lock (bldcfoc2_t *ctx) |
| BLDC FOC 2 EEPROM access lock function. | |
| err_t | bldcfoc2_eeprom_access_unlock (bldcfoc2_t *ctx) |
| BLDC FOC 2 EEPROM access unlock function. | |
| err_t | bldcfoc2_eeprom_erase (bldcfoc2_t *ctx, uint8_t addr) |
| BLDC FOC 2 EEPROM erase function. | |
| err_t | bldcfoc2_eeprom_write (bldcfoc2_t *ctx, uint8_t addr, uint32_t data_in) |
| BLDC FOC 2 EEPROM write function. | |
| err_t | bldcfoc2_eeprom_read (bldcfoc2_t *ctx, uint8_t addr, uint32_t *data_out) |
| BLDC FOC 2 EEPROM read function. | |
| err_t | bldcfoc2_eeprom_set_config (bldcfoc2_t *ctx) |
| BLDC FOC 2 EEPROM default config function. | |
This file contains API for BLDC FOC 2 Click Driver.